/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cip.esymons.eventos.be;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 *
 * @author oscar
 */
@Entity
@Table(name = "eca_detalle_concepto")
@NamedQueries({@NamedQuery(name = "DetalleConcepto.findAll", query = "SELECT d FROM DetalleConcepto d"), @NamedQuery(name = "DetalleConcepto.findByDcoCodigo", query = "SELECT d FROM DetalleConcepto d WHERE d.dcoCodigo = :dcoCodigo"), @NamedQuery(name = "DetalleConcepto.findByDcoNombre", query = "SELECT d FROM DetalleConcepto d WHERE d.dcoNombre = :dcoNombre"), @NamedQuery(name = "DetalleConcepto.findByDcoEstado", query = "SELECT d FROM DetalleConcepto d WHERE d.dcoEstado = :dcoEstado")})
public class DetalleConcepto implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "dco_codigo")
    private Integer dcoCodigo;
    @Column(name = "dco_nombre")
    private String dcoNombre;
    @Column(name = "dco_estado")
    private Boolean dcoEstado;
    @Transient
    private Double monto = new Double(0);
    @Transient
    private int cantidad = 0;
    @Transient
    private UnidadMedida unidad;
    @Transient
    private boolean seleccionado;
    @JoinColumn(name = "tpc_codigo", referencedColumnName = "tpc_codigo")
    @ManyToOne(fetch = FetchType.LAZY)
    private TipoConcepto tpcCodigo;
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "dcoCodigo", fetch = FetchType.LAZY)
    private List<DetalleEgresos> detallePresupuestoCollection;
    @Transient
    private Integer nroOrden;
    @Transient
    private Double monto1 = 0.0;
    @Transient
    private Double monto2 = 0.0;
    @Transient
    private Double monto3 = 0.0;
    @Transient
    private Double monto4 = 0.0;
    @Transient
    private Double monto5 = 0.0;
    @Transient
    private Double monto6 = 0.0;
    @Transient
    private Double monto7 = 0.0;
    @Transient
    private Double monto8 = 0.0;
    @Transient
    private Double monto9 = 0.0;
    @Transient
    private Double monto10 = 0.0;
    @Transient
    private Double monto11 = 0.0;
    @Transient
    private Double monto12 = 0.0;
    @Transient
    private Double monto13 = 0.0;
    @Transient
    private Double monto14 = 0.0;
    @Transient
    private Double monto15 = 0.0;
    @Transient
    private Double monto16 = 0.0;
    @Transient
    private Double monto17 = 0.0;
    @Transient
    private Double monto18 = 0.0;
    @Transient
    private Double monto19 = 0.0;
    @Transient
    private Double monto20 = 0.0;
    @Transient
    private Double monto21 = 0.0;
    @Transient
    private Double monto22 = 0.0;
    @Transient
    private Double monto23 = 0.0;
    @Transient
    private Double monto24 = 0.0;
    @Transient
    private boolean band2 = false;
    @Transient
    private boolean band3 = false;
    @Transient
    private boolean band4 = false;
    @Transient
    private boolean band5 = false;
    @Transient
    private boolean band6 = false;
    @Transient
    private boolean band7 = false;
    @Transient
    private boolean band8 = false;
    @Transient
    private boolean band9 = false;
    @Transient
    private boolean band10 = false;
    @Transient
    private boolean band11 = false;
    @Transient
    private boolean band12 = false;
    @Transient
    private boolean band13 = false;
    @Transient
    private boolean band14 = false;
    @Transient
    private boolean band15 = false;
    @Transient
    private boolean band16 = false;
    @Transient
    private boolean band17 = false;
    @Transient
    private boolean band18 = false;
    @Transient
    private boolean band19 = false;
    @Transient
    private boolean band20 = false;
    @Transient
    private boolean band21 = false;
    @Transient
    private boolean band22 = false;
    @Transient
    private boolean band23 = false;
    @Transient
    private boolean band24 = false;

    public DetalleConcepto() {
    }

    public DetalleConcepto(Integer dcoCodigo) {
        this.dcoCodigo = dcoCodigo;
    }

    public boolean getBand2() {
        return band2;
    }

    public void setBand2(boolean band2) {
        this.band2 = band2;
    }

    public boolean getBand3() {
        return band3;
    }

    public void setBand3(boolean band3) {
        this.band3 = band3;
    }

    public boolean getBand4() {
        return band4;
    }

    public void setBand4(boolean band4) {
        this.band4 = band4;
    }

    public boolean getBand5() {
        return band5;
    }

    public void setBand5(boolean band5) {
        this.band5 = band5;
    }

    public boolean getBand6() {
        return band6;
    }

    public void setBand6(boolean band6) {
        this.band6 = band6;
    }

    public boolean getBand7() {
        return band7;
    }

    public void setBand7(boolean band7) {
        this.band7 = band7;
    }

    public boolean getBand10() {
        return band10;
    }

    public void setBand10(boolean band10) {
        this.band10 = band10;
    }

    public boolean getBand11() {
        return band11;
    }

    public void setBand11(boolean band11) {
        this.band11 = band11;
    }

    public boolean getBand12() {
        return band12;
    }

    public void setBand12(boolean band12) {
        this.band12 = band12;
    }

    public boolean getBand13() {
        return band13;
    }

    public void setBand13(boolean band13) {
        this.band13 = band13;
    }

    public boolean getBand14() {
        return band14;
    }

    public void setBand14(boolean band14) {
        this.band14 = band14;
    }

    public boolean getBand15() {
        return band15;
    }

    public void setBand15(boolean band15) {
        this.band15 = band15;
    }

    public boolean getBand16() {
        return band16;
    }

    public void setBand16(boolean band16) {
        this.band16 = band16;
    }

    public boolean getBand17() {
        return band17;
    }

    public void setBand17(boolean band17) {
        this.band17 = band17;
    }

    public boolean getBand18() {
        return band18;
    }

    public void setBand18(boolean band18) {
        this.band18 = band18;
    }

    public boolean getBand19() {
        return band19;
    }

    public void setBand19(boolean band19) {
        this.band19 = band19;
    }

    public boolean getBand20() {
        return band20;
    }

    public void setBand20(boolean band20) {
        this.band20 = band20;
    }

    public boolean getBand21() {
        return band21;
    }

    public void setBand21(boolean band21) {
        this.band21 = band21;
    }

    public boolean getBand22() {
        return band22;
    }

    public void setBand22(boolean band22) {
        this.band22 = band22;
    }

    public boolean getBand23() {
        return band23;
    }

    public void setBand23(boolean band23) {
        this.band23 = band23;
    }

    public boolean getBand24() {
        return band24;
    }

    public void setBand24(boolean band24) {
        this.band24 = band24;
    }

    public boolean getBand8() {
        return band8;
    }

    public void setBand8(boolean band8) {
        this.band8 = band8;
    }

    public boolean getBand9() {
        return band9;
    }

    public void setBand9(boolean band9) {
        this.band9 = band9;
    }

    public Double getMonto10() {
        return monto10;
    }

    public void setMonto10(Double monto10) {
        this.monto10 = monto10;
    }

    public Double getMonto11() {
        return monto11;
    }

    public void setMonto11(Double monto11) {
        this.monto11 = monto11;
    }

    public Double getMonto12() {
        return monto12;
    }

    public void setMonto12(Double monto12) {
        this.monto12 = monto12;
    }

    public Double getMonto13() {
        return monto13;
    }

    public void setMonto13(Double monto13) {
        this.monto13 = monto13;
    }

    public Double getMonto14() {
        return monto14;
    }

    public void setMonto14(Double monto14) {
        this.monto14 = monto14;
    }

    public Double getMonto15() {
        return monto15;
    }

    public void setMonto15(Double monto15) {
        this.monto15 = monto15;
    }

    public Double getMonto16() {
        return monto16;
    }

    public void setMonto16(Double monto16) {
        this.monto16 = monto16;
    }

    public Double getMonto17() {
        return monto17;
    }

    public void setMonto17(Double monto17) {
        this.monto17 = monto17;
    }

    public Double getMonto18() {
        return monto18;
    }

    public void setMonto18(Double monto18) {
        this.monto18 = monto18;
    }

    public Double getMonto19() {
        return monto19;
    }

    public void setMonto19(Double monto19) {
        this.monto19 = monto19;
    }

    public Double getMonto20() {
        return monto20;
    }

    public void setMonto20(Double monto20) {
        this.monto20 = monto20;
    }

    public Double getMonto21() {
        return monto21;
    }

    public void setMonto21(Double monto21) {
        this.monto21 = monto21;
    }

    public Double getMonto22() {
        return monto22;
    }

    public void setMonto22(Double monto22) {
        this.monto22 = monto22;
    }

    public Double getMonto23() {
        return monto23;
    }

    public void setMonto23(Double monto23) {
        this.monto23 = monto23;
    }

    public Double getMonto24() {
        return monto24;
    }

    public void setMonto24(Double monto24) {
        this.monto24 = monto24;
    }

    public Double getMonto8() {
        return monto8;
    }

    public void setMonto8(Double monto8) {
        this.monto8 = monto8;
    }

    public Double getMonto9() {
        return monto9;
    }

    public void setMonto9(Double monto9) {
        this.monto9 = monto9;
    }

    public Integer getNroOrden() {
        return nroOrden;
    }

    public void setNroOrden(Integer nroOrden) {
        this.nroOrden = nroOrden;
    }

    public boolean getSeleccionado() {
        return seleccionado;
    }

    public Double getMonto1() {
        return monto1;
    }

    public void setMonto1(Double monto1) {
        this.monto1 = monto1;
    }

    public Double getMonto2() {
        return monto2;
    }

    public void setMonto2(Double monto2) {
        this.monto2 = monto2;
    }

    public Double getMonto3() {
        return monto3;
    }

    public void setMonto3(Double monto3) {
        this.monto3 = monto3;
    }

    public Double getMonto4() {
        return monto4;
    }

    public void setMonto4(Double monto4) {
        this.monto4 = monto4;
    }

    public Double getMonto5() {
        return monto5;
    }

    public void setMonto5(Double monto5) {
        this.monto5 = monto5;
    }

    public Double getMonto6() {
        return monto6;
    }

    public void setMonto6(Double monto6) {
        this.monto6 = monto6;
    }

    public Double getMonto7() {
        return monto7;
    }

    public void setMonto7(Double monto7) {
        this.monto7 = monto7;
    }

    public void setSeleccionado(boolean seleccionado) {
        this.seleccionado = seleccionado;
    }

    public Double getMonto() {
        return monto;
    }

    public void setMonto(Double monto) {
        this.monto = monto;
    }

    public Integer getDcoCodigo() {
        return dcoCodigo;
    }

    public void setDcoCodigo(Integer dcoCodigo) {
        this.dcoCodigo = dcoCodigo;
    }

    public int getCantidad() {
        return cantidad;
    }

    public void setCantidad(int cantidad) {
        this.cantidad = cantidad;
    }

    public UnidadMedida getUnidad() {
        return unidad;
    }

    public void setUnidad(UnidadMedida unidad) {
        this.unidad = unidad;
    }

    public String getDcoNombre() {
        return dcoNombre;
    }

    public void setDcoNombre(String dcoNombre) {
        this.dcoNombre = dcoNombre;
    }

    public Boolean getDcoEstado() {
        return dcoEstado;
    }

    public void setDcoEstado(Boolean dcoEstado) {
        this.dcoEstado = dcoEstado;
    }

    public TipoConcepto getTpcCodigo() {
        return tpcCodigo;
    }

    public void setTpcCodigo(TipoConcepto tpcCodigo) {
        this.tpcCodigo = tpcCodigo;
    }

    public List<DetalleEgresos> getDetallePresupuestoCollection() {
        return detallePresupuestoCollection;
    }

    public void setDetallePresupuestoCollection(List<DetalleEgresos> detallePresupuestoCollection) {
        this.detallePresupuestoCollection = detallePresupuestoCollection;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (dcoCodigo != null ? dcoCodigo.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof DetalleConcepto)) {
            return false;
        }
        DetalleConcepto other = (DetalleConcepto) object;
        if ((this.dcoCodigo == null && other.dcoCodigo != null) || (this.dcoCodigo != null && !this.dcoCodigo.equals(other.dcoCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "org.cip.esymons.eventos.be.DetalleConcepto[dcoCodigo=" + dcoCodigo + "]";
    }
}
